from openai import OpenAI
client = OpenAI(base_url="http://localhost:11434/generate")
print(client.models.list())  # 应返回本地加载的模型列表
